//
//  UIImage+Common.h
//  DYStore
//
//  Created by Mxionlly on 16/5/20.
//  Copyright © 2016年 MyMac. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIImage (Common)

+ (UIImage *)imageWithColor:(UIColor *)aColor;
+ (UIImage *)imageWithColor:(UIColor *)aColor withFrame:(CGRect)aFrame;
- (UIImage *)scaleToSize:(CGSize)targetSize;
- (UIImage *)scaleToSize:(CGSize)targetSize highQuality:(BOOL)highQuality;
- (UIImage *)scaleToMaxSize:(CGSize)maxSize;
+ (UIImage *)scaleImage:(NSString *)imagename scaleindex:(CGFloat)index;
- (UIImage *)getImageSizeTo:(UIImage *)image;
+ (NSData *)reSizeImageData:(UIImage *)sourceImage maxImageSize:(CGFloat)maxImageSize maxSizeWithKB:(CGFloat) maxSize;
+ (UIImage *) imageCompressForWidth:(UIImage *)sourceImage;
@end
